#pragma once
#include "CRoutedEventArgs.h"

class CInputPointEventArgs :
	public CRoutedEventArgs
{


public: 
	virtual ~CInputPointEventArgs();
	static HRESULT Create(CDependencyObject * * ppObject, CREATEPARAMETERS * pCreate);
	HRESULT GetPosition(CUIElement * pRelativeTo, struct XPOINTF * pRelativePoint);
	HRESULT GetRelativePosition(CUIElement * pRelativeTo, struct XPOINTF * pRelativePoint);
	HRESULT ConvertGlobalPointToRelativePoint(CUIElement * pRelativeTo, struct XPOINTF * pRelativePoint);
	struct XPOINTF m_ptGlobal;
	XUINT32 m_pointerDeviceType;

protected: 
	CInputPointEventArgs(CCoreServices * pCore);
	HRESULT TransformPointToElement(CUIElement * pUIElement, struct XPOINTF * ppt);


};